package com.sproutcat.sample.factory;

/**
 * @author tzg
 */
public abstract class Food {

    public Food(Class<? extends Food> cls) {
        System.out.println("===>> food: " + cls.getSimpleName());
    }

    public static void main(String[] args) {
        FoodFactory factory = new ChineseFoodFactory();
        Food food = factory.makeFood("A");

        factory = new AmericanFoodFactory();
        food = factory.makeFood("B");
    }

}
